package com.koron.order.application.bean.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 检修申请工单批复(ApplicationDelay)表实体类
 *
 * @author jzp
 * @since 2021-10-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "检修申请工单批复", description = "ApplicationDelay")
public class ApplicationDelay extends BaseBean {

    /**
     * 申请单ID
     */
    @ApiModelProperty("申请单ID")
    private String applicationId;

    /**
     * 申请延长结束时间
     */
    @ApiModelProperty("申请延长结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date delayTime;

    /**
     * 批复结果
     */
    @ApiModelProperty("批复结果 0不同意，1同意")
    private Integer result;

    /**
     * 批复开始时间
     */
    @ApiModelProperty("申请延时原因")
    private String delayCause;

    /**
     * 批复结束时间
     */
    @ApiModelProperty("批复结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date endTime;

    /**
     * 批复人意见
     */
    @ApiModelProperty("批复人意见")
    private String opinion;

    /**
     * 批复状态
     */
    @ApiModelProperty("批复状态 0待批复，1已批复")
    private Integer status;

}
